const { REDIS_CONF } = require('./db_config'),
      { isPrd } = require('./env_config');


module.exports = {
    qiniu: {
        keys: {
            ak:'3H83vj5yqF7g17EtdIKlC8un-2mP0BB9iB8PGpZU',
            sk:'01X_8G678D9i24XNV_BGDIvnu0eC2OqfSP3SqYZe'
        },
        bucket: {
            tximg: {
                bucket_name:'tenxunclass-image',
                domain: 'http://tximg.xumanplus.xyz/'    
            }
        }   
    },
    crawler: {
        url: {
            main: 'https://msiwei.ke.qq.com/#category=-1&tab=0',
            course: 'https://msiwei.ke.qq.com/#category=-1&tab=1',
            teacher: 'https://msiwei.ke.qq.com/#category=-1&tab=2',
            aboutus: 'https://msiwei.ke.qq.com/#category=-1&tab=3'
        }
    },
    sessionInfo: {
        keys: ['a1!s2@d3#f4$_+g5%h6^'], //加盐
        name: 'txclass.sid',
        prefix: 'txclass.sess'
    },
    cookieInfo: {
        path: '/',
        httpOnly: true,
        maxAge: 24 * 60 * 60 * 1000
    },
    redisInfo: {
        all: `${REDIS_CONF[1]}:${REDIS_CONF[0]}`
    },
    adminInfo: {
        username: 'admin',
        password: 'admin'
    },
    cryptoSecret: 'DFKLfoisdf@F#$sk9dj54*&*78778ew#',
    corsOrigin: isPrd ? 'http://admin.xumanplus.xyz' : 'http://localhost:3000'
}